//
//  KZFileVC.m
//  zhuyuanbao
//
//  Created by Jason T on 15/10/21.
//  Copyright © 2015年 KangZhi. All rights reserved.
//

#import "KZFileVC.h"
#import "KZTypeWriteVC.h"
#import "KZGenderVC.h"
#import "KZQuickmarkVC.h"
#import "KZAreaVC.h"
#import "KZPortaitView.h"

@interface KZFileVC ()<KZPortaitViewDelegate>
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *wConstraint;
@property (weak, nonatomic) IBOutlet KZPortaitView *portaintV;

@property (weak, nonatomic) IBOutlet UIScrollView *scrollV;
@end

@implementation KZFileVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = globalBackgroundColor;
    self.title = @"个人资料";
    
    self.portaintV.controller = self;
    self.portaintV.backgroundColor = KZColor(223, 223, 223);
    self.portaintV.portraintX = screenWidth - self.portaintV.width-20;
    self.portaintV.portraintY = 40 - self.portaintV.width-20;

}

- (void)viewDidLayoutSubviews
{
    [super viewDidLayoutSubviews];
    self.wConstraint.constant = screenWidth;
    self.scrollV.contentSize = CGSizeMake(screenWidth, 700);
    
}



- (IBAction)nameTap:(UITapGestureRecognizer *)sender {
    
    KZTypeWriteVC * typeWriteVC = [[KZTypeWriteVC alloc]init];
    typeWriteVC.type = KZTypeWriteName;
    [self.navigationController jumpToController:typeWriteVC];
    
}
- (IBAction)genderTap:(id)sender {
    
    KZGenderVC * genderVC = [[KZGenderVC alloc]init];
    [self.navigationController jumpToController:genderVC];
    
    
}

- (IBAction)cellPhoneTap:(id)sender {
    KZTypeWriteVC * typeWriteVC = [[KZTypeWriteVC alloc]init];
    typeWriteVC.type = KZTypeWritePhone;
    [self.navigationController jumpToController:typeWriteVC];
    
}
- (IBAction)quickmarkTap:(id)sender {
    KZQuickmarkVC * quickmarkVC = [[KZQuickmarkVC alloc]init];
    [self.navigationController jumpToController:quickmarkVC];
    
}

- (IBAction)areaTap:(id)sender {
    KZAreaVC * areaVC =  [[KZAreaVC alloc]init];
    [self.navigationController jumpToController:areaVC];
    
}

@end
